file1 = open(r"C:\Users\liu'quan'lin\Desktop\file\成语.txt", "r")
a = 0
for line in file1:
    print(line)
    a += 1
file1.close()
file2 = open(r"C:\Users\liu'quan'lin\Desktop\file\成语.txt", "w")
for i in range(0, a):
    b = input()
    file2.write(b)
file2.close()
